<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddMenu extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('menu', function (Blueprint $table) {
            /*
             * composer require "doctrine/dbal" 需要依赖
             * $table->renameColumn('left_name', 'ch_name');
            */

            $table->string('en_name', 100)
                ->default(null)
                ->comment('英语左栏目录')
                ->nullable();
            $table->string('tc_name', 100)
                ->default(null)
                ->comment('繁体左栏目录')
                ->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
